package com.xbongbong.pro.enums.menu.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import com.xbongbong.pro.enums.AccessLinkEnum;
import com.xbongbong.pro.enums.permission.enums.ProPermissionAliasEnum;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import lombok.Getter;

/**
 * @author: yingjf
 * @date: 2023/3/9 09:36
 * @description: 工单中心
 */
@Getter
public enum ContractManegeCenterEnum {

    // 工单设置
    WORK_ORDER_V2_SETTING("模板合同", "contractTemplate",
            AccessLinkEnum.CONTRACT_TEMPLATE.getIcon(), AccessLinkEnum.CONTRACT_TEMPLATE.getUrl(), ProPermissionAliasEnum.ONLINE_EDITOR_MANAGER_VIEW.getAlias()),

    ;

    private final String name;

    private final String alias;

    private final String icon;

    private final String url;

    private final String permission;

    ContractManegeCenterEnum(String name, String alias, String icon, String url, String permission){
        this.name = name;
        this.alias = alias;
        this.icon = icon;
        this.url = url;
        this.permission = permission;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
